import Home from '../views/home/index'
import Find from '../views/home/find'
import Video from '../views/home/video'
import My from '../views/home/my'
import Yun from '../views/home/yun'

import Enter from '../views/enter'
import Login from '../views/login'

const routes = [
    {
        from:'/',
        to:'/index/find'
    },
    {
        path:'/index',
        component:Home,
        children:[
            {
                path:'/index/my',
                component:My
            },
            {
               path:'/index/find',
               component:Find
            },
            {
                path:'/index/yun',
                component:Yun
            },
            {
                path:'/index/video',
                component:Video
            },
        ]
    },
    {
        path:'/enter',
        component:Enter
    },
    {
        path:'/login',
        component:Login
    }
]
export default routes